<?php
	require_once '../Tool/Common/PrepareInput.php';

    session_start();
    if (empty($_SESSION["userType"])) {
        $url="../Index.php";
		include_once '../Tool/Common/Redirect.php';
		exit();
    }

    if($_SESSION["userType"]=="Therapy Assistant"){
        $url="../Index.php";
		include_once '../Tool/Common/Redirect.php';
		exit();
    }
    
    $searchid =""; 
    $flag=0;
    if(isset($_REQUEST['searchid'])) { 
        $searchid=prepareInput($_REQUEST['searchid']); 
    }
    if(preg_match("/^[0-9A-Za-z-:''() ]*$/",$searchid)){
		$flag=1;
	}
    echo $flag;
?>